package com.vornitologist.ui;

import com.vaadin.addon.touchkit.ui.TabBarView;
import com.vaadin.terminal.ThemeResource;
import com.vaadin.ui.TabSheet.Tab;

public class MainTabsheet extends TabBarView {

    private TaskManager taskTab;
    private ClassificationHierarchy classificationHierarchy;
	private MyUnansignedTask taskUnTab;
	private ClassificationHierarchy processTab;

    public MainTabsheet() {

        
     
        
        taskTab = new TaskManager();
        Tab addTab = addTab(taskTab);
        addTab.setIcon(new ThemeResource("linegraphics/check.png"));
        addTab.setCaption("Tareas");
        
        taskUnTab = new MyUnansignedTask();
        addTab = addTab(taskUnTab);
        addTab.setIcon(new ThemeResource("linegraphics/check.png"));
        addTab.setCaption("Sin asignar");
        
        processTab = new ClassificationHierarchy();
        addTab = addTab(processTab);
        addTab.setIcon(new ThemeResource("linegraphics/world.png"));
        addTab.setCaption("Procesos");

        SettingsView settings = new SettingsView();
        addTab = addTab(settings);
        addTab.setIcon(new ThemeResource("linegraphics/tools.png"));
        addTab.setCaption("Settings");

        setSelectedTab(processTab);

    }

    @Override
    public void detach() {
        super.detach();
        
    }

    public ClassificationHierarchy getClassificationHierarchy() {
        return classificationHierarchy;
    }
}
